(function () {
	// console.log("hehe")
	Path.on(["/", "/__basename__.html"], function (_current_location) {
		console.log("hehe");
		// 拉取轮播器图片
		coAjax.get(public_api.banner.get.all, function (result) {
			App.set("$Cache.main.banner_list",result);
		}).then(function (r) {
			console.log(r)
		}).then(function (e) {
      // 图片轮播器
			var $movebox = $("#movebox");
			var _w = $movebox.width();
			$movebox.height(_w * 0.3385);
			var _count = $movebox.find("img").length;
			var _i = 1;
			var _ti = setInterval(function () {
				var _str = "translateX(-" + (_i % _count) * 100 + "%)";
				$movebox.stop().css({
					"-webkit-transform": _str,
					"transform": _str
				});
				_i++;
			}, 15000);
		})
	});
}());
